fix-configure-for-debian-archs
authorVincent Danjean <vdanjean@debian.org>
Sat, 25 Oct 2014 20:32:40 +0000 (21:32 +0100)
committerVincent Danjean <vdanjean@debian.org>
Sat, 25 Oct 2014 20:32:40 +0000 (21:32 +0100)
Fix architecture name for ARM on Debian

Gbp-Pq: Name fix-configure-for-debian-archs.patch

configure.ac

index a14474b6ac006c8b6a439837a3ea46f0d0deaa90..10044d2c59f1a5ad67e24878ed8409a6c6a08acf 100644 (file)
@@ -830,17 +830,17 @@ case $host_cpu in
       HOST_AS_FLAGS="$HOST_AS_FLAGS -mfloat-abi=hard";;
     esac
     ;;
-  armv7*)
+  arm*)
     AC_MSG_NOTICE([using the ARM optimized kernel lib for the native device])
     # check for gnueabihf, and set clang target accordingly
     case $host in
       #armv7l seems a popular host_cpu in distros. Clang uses "armv7", though
-      armv7l*gnueabihf)
+      arm*gnueabihf)
          llc_triple="armv7-unknown-linux-gnueabihf"
          HOST_CLANG_FLAGS="$HOST_CLANG_FLAGS -mfloat-abi=hard"
          HOST_LLC_FLAGS="$HOST_LLC_FLAGS -float-abi=hard"
          HOST_AS_FLAGS="$HOST_AS_FLAGS -mfloat-abi=hard";;
-      armv7l*gnueabi)
+      arm*gnueabi)
          llc_triple="armv7-unknown-linux-gnueabi"
          AC_DEFINE([HOST_FLOAT_SOFT_ABI], [], ["basic and pthreads devices use soft-float ABI"])
          HOST_CLANG_FLAGS="$HOST_CLANG_FLAGS -mfloat-abi=soft"
@@ -869,6 +869,11 @@ case $host_cpu in
     HOST_LD_FLAGS="$HOST_LD_FLAGS -lm"
     CL_DEVICE_ADDRESS_BITS=64
     ;;
+  aarch64*)
+    AC_MSG_NOTICE([using the aarch64 optimized kernel lib for the native device])
+    HOST_LD_FLAGS="$HOST_LD_FLAGS -lm"
+    CL_DEVICE_ADDRESS_BITS=64
+    ;;
   i?86)
     AC_MSG_NOTICE([using the x86 32bit optimized kernel lib for the native device])
     HOST_LD_FLAGS="$HOST_LD_FLAGS -lm"
@@ -886,7 +891,7 @@ case $host_cpu in
     AC_MSG_NOTICE([using the ppc64 optimized kernel lib for the native device])
     HOST_LD_FLAGS="$HOST_LD_FLAGS -lm"
     llc_triple="powerpc64-unknown-linux-gnu"
-    CL_DEVICE_ADDRESS_BITS=32
+    CL_DEVICE_ADDRESS_BITS=64
     #TODO: not all PowerPCs have Altivec?
     HOST_LLC_FLAGS="$HOST_LLC_FLAGS -mattr=altivec"
     CLANG_MARCH_FLAG="mcpu"